Component({
  props: {
    num: 1,
  },
  methods: {
    $watch(e) {
      if (e.newVal >= 10 || e.newVal <= 0) {
        this.triggerEvent('changeBtn', {
          hideA: e.newVal >= 10,
          hideB: e.newVal <= 0
        })
      } else {
        this.triggerEvent('changeBtn', {
          hideA: false,
          hideB: false
        })
      }
    }
  }
})
